﻿using System;

namespace ProjectAutumn.Window
{
    class NullWindow : WindowDevice
    {
        private bool exiting;
        public NullWindow(Game game) : base(game) { }
        public override void SetTitle(string value) { }
        public override void Run() { while (!exiting) Game.Tick(); }
        public override IntPtr Handle
        {
            get { return IntPtr.Zero; }
        }
        public override void Dispose()
        {
            exiting = true;
        }
        public override void GlFlip() { }
        public override WindowCapabilities WindowCapabilities
        {
            get {
                return new WindowCapabilities();
            }
        }
        protected internal override void ApplyChanges(int width, int height, bool fullscreen) { }
        public override int Width
        {
            get { return 0; }
        }
        public override int Height
        {
            get { return 0; }
        }
    }
}
